<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
    <title><%= htmlWebpackPlugin.options.title %></title>
  </head>
  <body>
    <noscript>
      <strong
        >We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
        properly without JavaScript enabled. Please enable it to
        continue.</strong
      >
    </noscript>
    <div id="app"></div>
    <script type="x-shader/x-vertex" id="vertexshader">

                      uniform float time;

                      attribute vec3 aColor;
                      attribute vec3 displacement;

                      varying vec3 vColor;


                      void main() {
                          vColor = aColor;
                         // gl_Position =projectionMatrix * modelViewMatrix * vec4( position, 1.0 );

         // vec3 newPosition =position+normal*2.0;//每个面偏移

      //  vec3 newPosition =position+normal*displacement;//每个面随机偏移



                         vec3 newPosition = position+normal* time  * displacement;
                        gl_Position = projectionMatrix * modelViewMatrix * vec4( newPosition, 1.0 );

                      }
    </script>

    <script type="x-shader/x-fragment" id="fragmentshader">

      varying vec3 vColor;
      void main() {
              gl_FragColor =vec4(vColor, 1.0 );

      }
    </script>
    <!-- built files will be auto injected -->
  </body>
</html>
